﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.Xml.Linq;
using WebApp.Domain;

namespace WebApp.Web
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IWcfService" in both code and config file together.
    [ServiceContract]
    public interface IWcfTempFileService
    {
        [OperationContract]
        string CreateTempFile(Guid fileItemID, string ip, Guid userID, string userAgent);
        [OperationContract]
        void UpdateTempFile(Guid userID, Guid tempFileID, int willExpiredAfterDays, bool isExpiredAfterDownload, bool isExpiredNow);
        [OperationContract]
        FileItem GetFileItemByID(Guid userID, Guid fileItemID);
        [OperationContract]
        TempFile GetTempFileByCode(Guid userID, string tempCode);
    }
}
